import Layout from '../views/layout/Layout'

const _import = require('./_import_' + process.env.NODE_ENV);

export default {
  path: '/message',
  component: Layout,
  name: 'message',
  meta: {title: '消息管理', icon: 'icon'},
  children: [
    {
      path: 'add',
      component: _import('message/detail'),
      name: 'messageMsgAdd',
      meta: {title: '新建消息', index: '/message/list'},
      hidden: true
    },
    {
      path: 'detail/view/:id',
      component: _import('message/detail'),
      name: 'messageMsgView',
      meta: {title: '查看消息', noCache: true, index: '/message/list'},
      hidden: true,
      props: true
    },
    {
      path: 'detail/edit/:id',
      component: _import('message/detail'),
      name: 'messageMsgEdit',
      meta: {title: '编辑消息', noCache: true, index: '/message/list'},
      hidden: true,
      props: true
    }
  ]
}
